#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
float* search(float(*p)[4], int n)
{
	float* pt;
	pt = *(p+n);
	return pt;
}
int main()
{
	float score[][4] = { { 90, 91, 92, 93 },{ 80, 81, 82, 83 },{ 70, 71, 72, 73 } };
	float* ps;
	int i, j;
	printf("enter one student's number(0~2):");
	scanf("%d", &i);
	printf("This student's scores are:\n");
	ps = search(score, i);	
	for (j = 0; j < 4; j++)
		printf("%5.1f", *(ps + j));
	printf("\n");
	return 0;
}